package g11.model;

import java.io.Serializable;

public class Prescription implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = -4061633626833122444L;

	private Integer visitationContentId;
	private Integer drugId;
	private String dosage;
	private Drug drug;

	public Integer getVisitationContentId() {
		return visitationContentId;
	}

	public void setVisitationContentId(Integer visitationContentId) {
		this.visitationContentId = visitationContentId;
	}

	public Integer getDrugId() {
		return drugId;
	}

	public void setDrugId(Integer drugId) {
		this.drugId = drugId;
	}

	public String getDosage() {
		return dosage;
	}

	public void setDosage(String dosage) {
		this.dosage = dosage;
	}

	public Drug getDrug() {
		return drug;
	}

	public void setDrug(Drug drug) {
		this.drug = drug;
		this.drugId = drug.getDrugId();
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

}
